//
//  NoteBookCell.h
//  Grammar
//
//  Created by Rick on 6/30/13.
//
//

#import <UIKit/UIKit.h>
#import "ITTImageView.h"

@class Note;

@protocol NoteBookCellDelegate <NSObject>

- (void)selectNoteBook:(Note*)noteBook;
- (void)tapMoreOption:(Note*)noteBook withIndex:(NSInteger)index;

@end


@interface NoteBookCell : UITableViewCell<ITTImageViewDelegate>
{
    CGFloat _cellHeight;
    Note *_currentNote;
}
@property (retain, nonatomic) IBOutlet ITTImageView *noteImageView;
@property (retain, nonatomic) IBOutlet UILabel *contentLabel;
@property (retain, nonatomic) IBOutlet UILabel *updateTimeLabel;
@property (assign, nonatomic) id<NoteBookCellDelegate>delegate;
@property (retain, nonatomic) IBOutlet UIButton *moreButton;
@property (nonatomic) NSInteger cellRow;

- (void)setCellWithNote:(Note*)note;
- (void)layoutCellStyle:(NoteBookCellType)type;
- (CGFloat)getCellHeight;
@end
